package com.group.hugedatabehind.controller;

import com.group.hugedatabehind.mapper.ApplicationMapper;
import com.group.hugedatabehind.pojo.One;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
@CrossOrigin(origins = "*", allowedHeaders = "*", methods = {RequestMethod.GET, RequestMethod.POST, RequestMethod.PUT, RequestMethod.DELETE, RequestMethod.OPTIONS})
public class Controller {

    @Autowired
    private ApplicationMapper applicationMapper;

    @GetMapping("/getone")
    public Object getOne()  {
        One one = applicationMapper.getOne();
        return one;
    }
    @GetMapping("/gettwo")
    public Object getTwo(){
        return applicationMapper.getTwo();
    }

    @GetMapping("/getthree")
    public Object getThree(){
        return applicationMapper.getThree();
    }

    @GetMapping("/getfour")
    public Object getFour(){
        return applicationMapper.getFour();
    }

    @GetMapping("/getfive")
    public Object getFive(){
        return applicationMapper.getFive();
    }

    @GetMapping("/getsix")
    public Object getSix(){
        return applicationMapper.getSix();
    }

    @GetMapping("/getseven")
    public Object getSeven(){
        return applicationMapper.getSeven();
    }

    @GetMapping("/geteight")
    public Object getEight(){
        return applicationMapper.getEight();
    }

    @GetMapping("/getnine")
    public Object getNine(){
        return applicationMapper.getNine();
    }
    @GetMapping("/getten")
    public Object getTen(){
        return applicationMapper.getTen();
    }
    @GetMapping("/geteleven")
    public Object getEleven(){
        return applicationMapper.getEleven();
    }
    @GetMapping("/gettwelve")
    public Object getTwelve(){
        return applicationMapper.getTwelve();
    }

}
